package com.zbkj.common.model.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 用户积分表 --- 新添加
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_user_integral")
@ApiModel(value="UserIntegral对象", description="用户积分表")
public class UserIntegral implements Serializable {
    private static final long serialVersionUID=1L;
    @ApiModelProperty(value = "记录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户uid")
    private Integer uid;

    @ApiModelProperty(value = "增值积分")
    private BigDecimal valueAddIntegral;

    @ApiModelProperty(value = "绿色积分")
    private BigDecimal greenIntegral;

    @ApiModelProperty(value = "贡献值")
    private BigDecimal contributionIntegral;

    @ApiModelProperty(value = "余额")
    private BigDecimal balance;

    @ApiModelProperty(value = "cb基金")
    private BigDecimal cbfunds;

    @ApiModelProperty(value = "增值积分冻结金额")
    private BigDecimal valueAddIntegralFreeze;

    @ApiModelProperty(value = "绿色积分冻结金额")
    private BigDecimal greenIntegralFreeze;

    @ApiModelProperty(value = "增值积分本金部分")
    private BigDecimal valueAddIntegralPrincipal;



}
